class animal:
    def sleep(self):
        print("睡觉")

    def eat(self):
        print("吃")


class dog(animal):
    def run(self):
        print("跑")


class fish(animal):
    def swimming(self):
        print("游泳")


class brid(animal):
    def fiy(self):
        print("飞")

b =brid()
b.sleep()

f = fish()
f.sleep()